<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<StockExchanger.Controllers.BuySellFormViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Sell
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Sell</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="Id">Id:</label>
                <%= Html.TextBox("Id")%>
                <%= Html.ValidationMessage("Id", "*")%>
            </p>
            <p>
                <label for="SellerId">SellerId:</label>
                <%= Html.TextBox("SellerId")%>
                <%= Html.ValidationMessage("SellerId", "*")%>
            </p>
            <p>
                <label for="Item">Item:</label>
                <%= Html.TextBox("Item") %>
                <%= Html.ValidationMessage("Item", "*") %>
            </p>
            <p>
                <label for="Quantity">Quantity:</label>
                <%= Html.TextBox("Quantity") %>
                <%= Html.ValidationMessage("Quantity", "*") %>
            </p>
<!--
            <p>
                <label for="Rate">Rate:</label>
                <%= Html.TextBox("Rate") %>
                <%= Html.ValidationMessage("Rate", "*") %>
            </p>
-->
            <p>
                <label for="StartDate">StartDate:</label>
                <%= Html.TextBox("StartDate") %>
                <%= Html.ValidationMessage("StartDate", "*") %>
            </p>
<!--    comment       
            <p>
                <label for="EndDate">EndDate:</label>
                <%= Html.TextBox("EndDate") %>
                <%= Html.ValidationMessage("EndDate", "*") %>
            </p>    

            <p>
                <label for="Sold">Sold:</label>
                <%= Html.TextBox("Sold") %>
                <%= Html.ValidationMessage("Sold", "*") %>
            </p>
            <p>
                <label for="Description">Description:</label>
                <%= Html.TextBox("Description") %>
                <%= Html.ValidationMessage("Description", "*") %>
            </p>
 --> 
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "ShareList") %>
    </div>

</asp:Content>

